<?php


namespace app\api\controller;

use app\api\logic\UserLogic;
use app\common\controller\BaseApiController;

/**
 * 用户余额
 * Class UserBalance
 * @package app\api\controller
 */
class UserWalletController extends BaseApiController
{
    protected function init()
    {
        parent::init();
        $this->logic = new UserLogic();
    }

    public function myBalance()
    {
        return $this->success($this->logic->myBalance(request()->uid));
    }

    public function balanceLog()
    {
        return $this->success($this->logic->balanceLog(request()->uid));
    }

    public function integralLog()
    {
        return $this->success($this->logic->integralLog(request()->uid));
    }
}